package server;

/* DEV LOG
 * 12/25/09 - Separated Players class into Players.java
 */

public class Players {
    static private String[] pName;
    static private int[] pLevel;
    static public int totalPlayers;

    public static void initPlayers(int setTotal) {

        totalPlayers = setTotal;

        pName = new String[totalPlayers];
        pLevel = new int[totalPlayers];

        int i = 0;

        while (i < totalPlayers) {
            pName[i] = new String();
            i++;
        }
        System.out.println(totalPlayers + " players initialized.");
    }

    public static void setLevel(int Index, int setLevel) {
        pLevel[Index] = setLevel;
    }

    public static int Level(int Index) {
        return pLevel[Index];
    }

    public static void setName(int Index, String Name) {
        pName[Index] = Name;
    }

    public static String Name(int Index) {
        return pName[Index];
    }
}